using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace asWins.Forms
{
	/// <summary>
	/// Extened MenuItem.
	/// </summary>
	public class MenuItemEx : System.Windows.Forms.MenuItem
	{
		#region Constructor

		/// <summary>
		/// Innitialized a new MenuItem Extened.
		/// </summary>
		public MenuItemEx()
		{
			this.m_FormId = -1;
			this.m_MyMenuId = -1;
			this.m_Tag = null;
		}

		#endregion

		#region Variables

		private int m_FormId;
		/// <summary>
		/// Keep form id in Mdi Manager.
		/// </summary>
		[
		Description("Keep form id in Mdi Manager."),
		DefaultValue(-1),
		Browsable(false)
		]
		public int FormId
		{
			get {return m_FormId;}
			set {m_FormId = value;}
		}

		private int m_MyMenuId;
		/// <summary>
		/// My menu id
		/// </summary>
		[
		Description("My menu id"),
		DefaultValue(-1),
		Browsable(true),
		Category("Appearance")
		]
		public int MyMenuId
		{
			get {return m_MyMenuId;}
			set {m_MyMenuId = value;}
		}

		private object m_Tag;
		/// <summary>
		/// Special object.
		/// </summary>
		[
		Description("Special object."),
		DefaultValue(null),
		Browsable(true),
		Category("Appearance")
		]
		public object Tag
		{
			get {return m_Tag;}
			set {m_Tag = value;}
		}

		#endregion
	}
}
